import request from '@/utils/request'

export function queryList(data) {
  return request({
    url: '/hndqyss/data_expand/qeury_list',
    method: 'post',
    data
  })
}
export function createTable(data) {
  return request({
    url: '/hndqyss/data_expand/create_table',
    method: 'post',
    data
  })
}

export function delete_table(data) {
  return request({
    url: '/hndqyss/data_expand/delete_table?tableName='+data,
    method: 'post',
    data
  })
}
export function drop_table(data) {
  return request({
    url: '/hndqyss/data_expand/drop_table?tableNames='+data,
    method: 'post',
  })
}
export function upload(data) {
  return request({
    url: '/hndqyss/data_expand/upload',
    method: 'post',
    data
  })
}
export function queryDatasByTableName(data) {
  return request({
    url: '/hndqyss/data_expand/queryDatasByTableName',
    method: 'post',
    data
  })
}
export function updateQuotas(data) {
  return request({
    url: '/hndqyss/model/update',
    method: 'post',
    data
  })
}
export function testQuotas(data) {
  return request({
    url: '/hndqyss/model/test',
    method: 'post',
    data
  })
}

